import React, { Component } from 'react';

class Side extends Component {
    render() {
        return (
            <div className="side">
                {
                    this.props.classify.map((item,index)=>{
                        return (
                        <div key={index} className={`btn ${this.props.i===index?'active':''}`} onClick={()=>{this.props.saveI(index)}}>{item.btn}</div>)
                    })
                }
            </div>
        );
    }
}

export default Side;